<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>ShoesShopping管理员后台</title>
		
		<!-- CSS -->
		<link id="easyuiTheme" rel="stylesheet" href="jquery-easyui-1.3.4/themes/bootstrap/easyui.css" type="text/css"></link>
		<link rel="stylesheet" href="jquery-easyui-1.3.4/themes/icon.css" type="text/css"></link>
		
		<!-- JS -->
		<script type="text/javascript" src="jquery-easyui-1.3.4/jquery.min.js" charset="UTF-8"></script>
		<script type="text/javascript" src="jquery-easyui-1.3.4/jquery.easyui.min.js" charset="UTF-8"></script>
		<script type="text/javascript" src="jquery-easyui-1.3.4/locale/easyui-lang-zh_CN.js" charset="UTF-8"></script>
		
		<!-- 配置文件 -->
    	<script type="text/javascript" src="ueditor/ueditor.config.js"></script>
   		<!-- 编辑器源码文件 -->
    	<script type="text/javascript" src="ueditor/ueditor.all.min.js"></script>
    	
		
	</head>
	
	<script type="text/javascript">
	/*$(function(){
		$('#goodsForm').form({
			success:function(data){
			$.messager.alert('Info', data, 'info');
		}
		});
	});*/
	</script>

	<body style="width: 800px;">
		<form id="goodsForm" action="goodsAdmin/goodsAdmin_add" method="post" enctype="multipart/form-data">
			<input type="hidden" name="id" value='<s:property value="editGoods.id"/>' >
			<p>
				<label>名字：</label>
				<input type="text" name="name" value='<s:property value="editGoods.name"/>' value='' class="easyui-validatebox" data-options="required:true"/>
			</p>
			<p>
				<label>价格：</label>
				<input type="text" name="price" value='<s:property value="editGoods.price"/>' class="easyui-numberbox" data-options="required:true,min:0,precision:2,max:9999999"/>
			</p>
			<p>
				<label>颜色：</label>
				<input type="text" name="color" value='<s:property value="editGoods.color"/>' class="easyui-validatebox" data-options="required:true"/>
			</p>
			<p>
				<label>类型：</label>
				<input type="text" name="type" value='<s:property value="editGoods.type"/>' class="easyui-validatebox" data-options="required:true"/>
			</p>
			<p>
				<label>图片：</label>
				<input type="file" name="upload" class="easyui-validatebox" data-options="required:true">
			</p>
			<p>
				<label>余量：</label>
				<input type="text" name="rest" value='<s:property value="editGoods.rest"/>' class="easyui-numberbox" data-options="required:true,min:0,max:9999999"/>
			</p>
			
			<p>
				<label>详细：</label>
  			 	<script id="container" name="details" type="text/plain">
  			 		<s:property value="editGoods.details" escape="false"/>
  			 	</script>
			</p>
			
			<p>
				<input type="submit"" value="发布" />
			</p>
		</form>

	</body>
	
	<!-- 实例化编辑器 -->
	<script type="text/javascript">
       	var ue = UE.getEditor('container', {
       		initialFrameWidth:800,
			initialFrameHeight:200,
			enableAutoSave: false,
    		toolbars:[["emotion","bold","italic","underline","forecolor","fontsize","fontfamily","insertunorderedlist","insertorderedlist","autotypeset"]]
		});
    </script>

</html>
